package org.example.blogserver.system.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.example.blogpojo.blog.domain.Menu;
import org.example.blogpojo.blog.query.MenuQuery;

import java.util.List;

@Mapper
public interface MenuMapper {
    //新增
    void addMenu(Menu menu);
    //修改
    void updateMenu(Menu menu);
    //删除
    void deteleById(Long id);
    //查询单个
    Menu findOne(Long id);
    //查询所有
    List<Menu> findAll();

    List<Menu> queryPage(MenuQuery menuQuery);

    void deleteMenuByIds(Long[] ids);

}
